<?
include('adodb/adodb-exceptions.inc.php'); 
require ("comun/ini.php");
if(isset($_POST['JsonEnv'])){
	$JsonRec = new Services_JSON();
	$JsonEnv = new Services_JSON();
	$JsonRec=$JsonRec->decode(str_replace("\\","",$_POST['JsonEnv']));
	try {
		$q = "SELECT * FROM peritos WHERE id=$JsonRec->Perito LIMIT 1";
		$r = $conn->Execute($q);
		$i=0;
		while(!$r->EOF){
			$Tasas[$i]['A'] = muestrafloat($r->fields['tasa_asociacion']);
			$Tasas[$i]['F'] = muestrafloat($r->fields['tasa_fideicomiso']);
			$i++;
			$r->movenext();
		}
		if(is_array($Tasas)){
			echo $JsonEnv->encode($Tasas);
		}else{
			echo false;
		}
	}catch( ADODB_Exception $e ){
		//	echo ERROR_CATCH_GENERICO;
		echo false;
	}
} 
?>